package com.yl.order.db.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;

import java.io.Serializable;

/**
 * create by cjx on 2024/5/28
 * desc:
 */
@Entity
public class GoodsEntity implements Serializable {
    @Transient
    public static final long serialVersionUID = -1L;
    @Id(autoincrement = true)
    private Long id;  //数据库自动增长id

    private Long remoteId; // 服务器id

    private String groupNumber; // 分组编码

    private String name; // 名称
    @Unique
    private String number; // 编码

    private String icon; // 图标

    private int sort; // 排序

    private String price; // 单价

    @Generated(hash = 1767857131)
    public GoodsEntity(Long id, Long remoteId, String groupNumber, String name,
            String number, String icon, int sort, String price) {
        this.id = id;
        this.remoteId = remoteId;
        this.groupNumber = groupNumber;
        this.name = name;
        this.number = number;
        this.icon = icon;
        this.sort = sort;
        this.price = price;
    }

    @Generated(hash = 223916156)
    public GoodsEntity() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRemoteId() {
        return this.remoteId;
    }

    public void setRemoteId(Long remoteId) {
        this.remoteId = remoteId;
    }

    public String getGroupNumber() {
        return this.groupNumber;
    }

    public void setGroupNumber(String groupNumber) {
        this.groupNumber = groupNumber;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return this.number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getIcon() {
        return this.icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public int getSort() {
        return this.sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public String getPrice() {
        return this.price;
    }

    public void setPrice(String price) {
        this.price = price;
    }


}
